###############################################
# === xenomorph_hive_brood_districts.txt ===
###############################################
###############################################
# Brood Hive Xenomorph Districts
###############################################

district_xenomorph_genetic_pleasure_archives = {
	icon = district_city
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_science
	is_uncapped = { always = yes }

	zone_slots = {
		slot_polytechnic
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_brood
	}

	potential = {
		uses_district_set = xenomorph_hive_brood
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_society_research_produces_mult = 0.08
		planet_pop_assembly_mult = 0.03
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_sensory_resin_chambers = {
	icon = district_generator
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_hive
	is_uncapped = { always = yes }

	zone_slots = {
		slot_xenomorph_hive
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_brood
	}

	potential = {
		uses_district_set = xenomorph_hive_brood
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_amenities_add = 8
		planet_jobs_unity_produces_mult = 0.06
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_maintenance_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_entertainer_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_nutrient_womb_fields = {
	icon = district_farming
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_food
	is_uncapped = { always = yes }

	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_brood
	}

	potential = {
		uses_district_set = xenomorph_hive_brood
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_food_produces_mult = 0.08
		planet_amenities_add = 3
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_extraction_drone_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_extraction_drone_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_grand_ovipositor_fields = {
	icon = district_city
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_hive
	is_uncapped = { always = yes }

	zone_slots = {
		slot_xenomorph_hive
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_brood
	}

	potential = {
		uses_district_set = xenomorph_hive_brood
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_pop_assembly_mult = 0.10
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_egg_caretaker_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_egg_caretaker_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

###############################################
# === xenomorph_hive_fortress_districts.txt ===
###############################################
###############################################
# Fortress Hive Xenomorph Districts
###############################################

district_xenomorph_fortress_memory_vaults = {
	icon = district_generator
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_science
	is_uncapped = { always = yes }

	zone_slots = {
		slot_polytechnic
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_fortress
	}

	potential = {
		uses_district_set = xenomorph_hive_fortress
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_engineering_research_produces_mult = 0.05
		planet_jobs_society_research_produces_mult = 0.05
		army_starting_experience_add = 25
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_chitin_ship_spines = {
	icon = district_arcology_fortress
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_foundry
	is_uncapped = { always = yes }

	zone_slots = {
		slot_empty
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_fortress
	}

	potential = {
		uses_district_set = xenomorph_hive_fortress
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_alloys_produces_mult = 0.06
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_carapace_weaver_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_carapace_weaver_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_war_beast_feeding_grounds = {
	icon = district_arcology_fortress
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_food
	is_uncapped = { always = yes }

	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_fortress
	}

	potential = {
		uses_district_set = xenomorph_hive_fortress
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_food_produces_mult = 0.05
		planet_jobs_unity_produces_mult = 0.03
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_extraction_drone_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_extraction_drone_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_warrior_brood_hatcheries = {
	icon = district_arcology_fortress
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_hive
	is_uncapped = { always = yes }

	zone_slots = {
		slot_xenomorph_hive
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_fortress
	}

	potential = {
		uses_district_set = xenomorph_hive_fortress
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_defense_armies_add = 2
		army_starting_experience_add = 25
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_warrior_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_soldier_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

###############################################
# === xenomorph_hive_foundry_districts.txt ===
###############################################
###############################################
# Foundry Hive Xenomorph Districts
###############################################

district_xenomorph_acid_metallurgy_labs = {
	icon = district_arcology_research_engineering
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_science
	is_uncapped = { always = yes }

	zone_slots = {
		slot_polytechnic
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_foundry
	}

	potential = {
		uses_district_set = xenomorph_hive_foundry
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_engineering_research_produces_mult = 0.10
		planet_jobs_alloys_produces_mult = 0.02
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_living_alloy_forges = {
	icon = district_arcology_arms_industry
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_foundry
	is_uncapped = { always = yes }

	zone_slots = {
		slot_empty
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_foundry
	}

	potential = {
		uses_district_set = xenomorph_hive_foundry
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_alloys_produces_mult = 0.12
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_carapace_weaver_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_carapace_weaver_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_biomass_fueling_vats = {
	icon = district_farming
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_food
	is_uncapped = { always = yes }

	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_foundry
	}

	potential = {
		uses_district_set = xenomorph_hive_foundry
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_food_produces_mult = 0.04
		planet_jobs_minerals_produces_mult = 0.05
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_extraction_drone_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_extraction_drone_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

district_xenomorph_forge_brood_incubators = {
	icon = district_arcology_arms_industry
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_hive
	is_uncapped = { always = yes }

	zone_slots = {
		slot_xenomorph_hive
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_foundry
	}

	potential = {
		uses_district_set = xenomorph_hive_foundry
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = 750
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_pop_assembly_mult = 0.04
		planet_jobs_alloys_produces_mult = 0.03
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_egg_caretaker_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_egg_caretaker_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

###############################################
# === xenomorph_hive_world_districts.txt ===
###############################################
###############################################
# Xenomorph Hive World Districts
###############################################

@xenomorph_base_district_cost = 500
@xenomorph_advanced_district_cost = 600

# Research

district_xenomorph_genetic_memory = {
	icon = district_generator
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_generator
	is_uncapped = { always = yes }

	zone_slots = {
		slot_energy
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_world
	}

	potential = {
		uses_district_set = xenomorph_hive_world
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = @xenomorph_advanced_district_cost
		}
		upkeep = {
			energy = 2
		}
	}

	planet_modifier = {
		planet_housing_add = 100
		planet_jobs_energy_produces_mult = 0.05
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_technician_drone_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_technician_add = 200
		}
	}

	prerequisites = { "tech_colonial_centralization" }
}

# Production

district_xenomorph_resin_production = {
	icon = district_mining
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_mining
	is_uncapped = { always = yes }

	zone_slots = {
		slot_minerals
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_world
	}

	potential = {
		uses_district_set = xenomorph_hive_world
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = @xenomorph_advanced_district_cost
		}
		upkeep = {
			energy = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_minerals_produces_mult = 0.05
		planet_jobs_alloys_produces_mult = 0.03
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_tunnel_drone_gestalt_add = 100
			job_xenomorph_carapace_weaver_gestalt_add = 100
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_tunnel_drone_add = 100
			job_xenomorph_carapace_weaver_add = 100
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

# Food

district_xenomorph_biomass_feeding = {
	icon = district_farming
	expansion_planner = yes
	base_buildtime = 360
	overlay_icon = GFX_district_food
	is_uncapped = { always = yes }

	zone_slots = {
		slot_food
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_world
	}

	potential = {
		uses_district_set = xenomorph_hive_world
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = @xenomorph_base_district_cost
		}
		upkeep = {
			energy = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 200
		planet_jobs_food_produces_mult = 0.05
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_extraction_drone_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_extraction_drone_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}

# Offspring / Egg

district_xenomorph_brood_nest = {
	icon = district_farming
	expansion_planner = yes
	base_buildtime = 480
	overlay_icon = GFX_district_hive
	is_uncapped = { always = yes }

	zone_slots = {
		slot_xenomorph_hive
	}

	show_on_uncolonized = {
		uses_district_set = xenomorph_hive_world
	}

	potential = {
		uses_district_set = xenomorph_hive_world
	}

	allow = {
		custom_tooltip = {
			fail_text = arcology_project_construction_fail_tt
			NOT = { has_planet_flag = arcology_project_construction }
		}
	}

	conversion_ratio = 1

	resources = {
		category = planet_districts
		cost = {
			minerals = @xenomorph_advanced_district_cost
		}
		upkeep = {
			food = 2
			energy = 1
		}
	}

	planet_modifier = {
		planet_housing_add = 100
		planet_pop_assembly_mult = 0.05
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = yes }
		}
		modifier = {
			job_xenomorph_egg_caretaker_gestalt_add = 200
		}
	}

	triggered_planet_modifier = {
		potential = {
			exists = owner
			owner = { is_gestalt = no }
		}
		modifier = {
			job_xenomorph_egg_caretaker_add = 200
		}
	}

	prerequisites = { "tech_hive_cluster" }
}
